﻿@model EquipmentCategoryModel

@{
    Layout = "~/Administration/Views/Shared/_AdminPopupLayout.cshtml";

    //page title
    ViewBag.Title = "新增设施设备分类";
}

@if (ViewBag.RefreshPage == true)
{
    <script type="text/javascript">
        @*try {window.opener.document.getElementById('@(ViewBag.btnId)').click();}
        catch (e){}*@
        window.opener.addNode({ id:@Model.Id,pid:@Model.PId,text:'@Model.Name' });
        window.close();
    </script>
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="content-header clearfix">
        <h1 class="pull-left">
            新增设施设备分类
        </h1>
        <div class="pull-right">
            <button type="submit" name="save" class="btn bg-blue">
                <i class="fa fa-floppy-o"></i>
                @T("Admin.Common.Save")
            </button>
        </div>
    </div>
    @Html.Partial("_CreateOrUpdate", Model)
}
